// 获取内容区数据
fetch("http://chst.vip:1234/api/getsitenav")
.then((body)=>body.json())
.then((res)=>{
    console.log(res);
    let html="";
    let {result:date} = res;
    date.forEach((item) => {
        html+=`<li>
        <a href ="${item.navHref}">
        <img src=" ${item.navImg}" alt="">
       <span> ${item.navTitle}</span></a></li>
       `
    });
    document.querySelector("#main ul").innerHTML+=html;
    
})
